% iris script
% Run over all images in the data folder and find the center of the iris

x = dir('data');
x = x(3:end);
centers = zeros(length(x)-2,2);
for i=1:length(x)
    i
    path = fullfile('data',x(i).name);
    I = imread(path);
    centers(i,:) = findbrightest(I);
end

%%
for i=1:length(x)
    path = fullfile('data',x(i).name);
    I = imread(path);
    subplot(7,5,i); imshow(I); hold on; plot(centers(i,1),centers(i,2),'ro','MarkerSize',5); title(x(i).name);
end